{% if islogin==1 %}
  <ul class="nav navbar-nav navbar-right profile">

            <li id="userInfo" class="dropdown">
                <a href="/personal/@{{logininfo.name}}" class="dropdown-toggle">
                    <img class="img-circle" src="{{_web.url}}{{theme_url}}/{{'common/images/pic/man.jpg' if logininfo.pic=='' else logininfo.pic}}" title="{{logininfo.name}}">
                    <b class="caret"></b>
                </a>
                <ul id="userMenu" class="dropdown-menu" style="display: none;">
                    <!-- <li>
                        <a href="/message">我的消息
                            <span class="fa fa-envelope pull-right"></span>
                        </a>
                    </li>
                    <li class="divider"></li> -->
                    <li><a href="/personal/@{{logininfo.name}}">我的主页
                            <span class="glyphicon glyphicon-user pull-right"></span></a>
                    </li>
                    <li class="divider"></li>
                    <li><a href="/personal/setting">账号设置
                            <span class="glyphicon glyphicon-cog pull-right"></span></a>
                    </li>
                    <li class="divider"></li>
                    <li><a href="/index/dologout">安全退出
                            <span class="glyphicon glyphicon-log-out pull-right"></span></a>
                    </li>
                </ul>
            </li>
  </ul>
  {% else %}
  <ul class="site-nav site-navbar login-region">
    <li>
        <a href="/login.html">
            <i class="fa fa-user"></i><span style="color:#ccc;margin-right:10px">登录</span>
        </a>
    </li>
    <li class="regBtn">
        <a href="/register.html">
            <span style="color:#ccc;margin-right:10px">注册</span>
        </a>
    </li>
  </ul>
{% endif %}
